home *** CD-ROM | disk | FTP | other *** search
- --on exitFrame
- -- global gLastSprite, gpausetime, gbuttonup, gLastMouseCast, glist, gTimer
- --
- -- if rollover(23) then --check for restart
- -- puppetsprite 23,true
- -- set the castnum of sprite 23 to 65
- -- else
- -- if not(the mouseDown) then puppetsprite 23, false
- -- end if
- --
- -- put the mousecast into backcast
- -- put getAt(glist,2) into sprite5sc
- -- put getAt(glist,3) into sprite6sc
- -- put getAt(glist,4) into sprite7sc
- --
- -- if backcast = sprite5sc then
- -- puppetsprite 6,false
- -- puppetsprite 7,false
- -- updateStage
- -- put backcast into gLastMouseCast
- -- puppetSprite 5, true
- -- set the castnum of sprite 5 to sprite5sc + 1
- -- updateStage
- -- set gbuttonup to true
- --
- -- else if (backcast <> sprite5sc + 1) and (gLastMouseCast = sprite5sc) then
- -- if gbuttonup then
- -- puppetSprite 6,false
- -- puppetsprite 7,false
- -- set gbuttonup to false
- -- puppetsprite 5, false
- -- updateStage
- -- end if
- -- end if
- --
- -- if backcast = sprite6sc then
- -- puppetsprite 5,false
- -- puppetSprite 7,false
- -- updatestage
- -- put backcast into gLastMouseCast
- -- puppetSprite 6, true
- -- set the castnum of sprite 6 to sprite6sc + 1
- -- updateStage
- -- set gbuttonup to true
- --
- -- else if (backcast <> sprite6sc + 1) and (gLastMouseCast = sprite6sc) then
- -- if gbuttonup then
- -- puppetSprite 5,false
- -- puppetSprite 7,false
- -- set gbuttonup to false
- -- puppetsprite 6,false
- -- updateStage
- -- end if
- -- end if
- --
- -- if backcast = sprite7sc then
- -- puppetsprite 5,false
- -- puppetSprite 6,false
- -- updatestage
- -- put backcast into gLastMouseCast
- -- puppetSprite 7, true
- -- set the castnum of sprite 7 to sprite7sc + 1
- -- updateStage
- -- set gbuttonup to true
- --
- -- else if (backcast <> sprite7sc + 1) and (gLastMouseCast = sprite7sc) then
- -- if gbuttonup then
- -- puppetSprite 5,false
- -- puppetSprite 6,false
- -- set gbuttonup to false
- -- puppetsprite 7,false
- -- updateStage
- -- end if
- -- end if
- --
- -- repeat with i = 11 to 16 -- button channels
- -- if rollover(i) then
- -- put i into RollSprite
- -- if RollSprite = gLastSprite then
- -- exit repeat
- -- else
- -- puppetSound 2, getAt(["qv210.aif","p70.aif","v70.aif","p50.aif","v50.aif","140.aif"], i-10)
- -- puppetsprite i,true
- -- puppetsprite 10,true
- -- put the castnum of sprite(i) into lastcast
- -- set the castnum of sprite(i) to lastcast + 1
- -- updateStage
- -- set the castnum of sprite(10) to lastcast - 1
- -- puppetTransition 26, 1, 1
- -- exit repeat
- -- end if
- -- end if
- -- end repeat
- --
- -- if gLastSprite<>RollSprite then
- -- puppetsprite gLastSprite, false
- -- updateStage
- -- if not(rollover(gLastSprite)) then
- -- sound stop 2
- -- puppetsprite 10, false
- -- --puppetTransition 26, 1, 1
- -- end if
- -- put RollSprite into gLastSprite
- -- end if
- --
- -- if (the ticks > gTimer + 60*60) and (the lastEvent > 60*60)then
- -- if the castNum of sprite 48 then pauseMovie
- -- if soundBusy(1) then sound stop 1
- -- clearSprites
- -- go "Main"
- -- else
- -- go to the frame
- -- end if
- --
- --end exitFrame
-